<?php

namespace app\dao\user;

use app\dao\BaseDao;
use app\model\ShopAdmin;

class ShopAdminDao extends BaseDao
{
    protected function setModel(): string
    {
        return ShopAdmin::class;
    }

    public function getByUserName($username)
    {
        return $this->getModel()->where('username', '=', $username)->with(['shop'])->find();
    }
}